package com.ruoyi.client.mapper;

import com.ruoyi.client.domain.Commission;
import com.ruoyi.client.domain.CommissionNo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommissionNoMapper {

    CommissionNo getCommissionBySymbolAndPrice(@Param("symbol") String symbol, @Param("commissionPrice") String buyPrice, @Param("id") Integer id);

    void add(CommissionNo commissionNo);

    void updateNumById(@Param("num") Integer num, @Param("id") Integer id);

    CommissionNo getCommissionBySymbolAndPriceSll(@Param("symbol") String symbol, @Param("commissionPrice") String buyPrice, @Param("id") Integer id);

    List<CommissionNo> errorEntrustList(Long userId);

}
